<html lang="zh-CN">

	<head>
		<meta charset="utf-8">
		<title>文档</title>
		<link href="./doc/css/semantic/semantic.min.css" rel="stylesheet">
		<link href="./doc/css/markdown.css" rel="stylesheet">
		<style>
			body {
				padding-top: 0;
				background: #f7f7f7
			}
			
			body>.ui.container {
				width: 100%;
				padding: 0
			}
			
			#project-title {
				background: #6e6e6e;
				width: 100%;
				line-height: 3.572rem;
				color: #fff;
				font-size: 1.2rem
			}
			
			#project-title .title-wrap {
				font-weight: 700;
				padding: 0 12px;
				width: 100%;
				max-width: 1366px!important;
				min-width: 900px;
				margin: 0 auto
			}
			
			#project-title .left,
			#project-title right {
				display: inline-block
			}
			
			#project-title .right {
				float: right
			}
			
			#project-title .right .wiki-actions .menu {
				left: auto;
				right: 0;
				margin-top: .4em!important
			}
			
			#wiki-preview-container {
				width: 100%;
				max-width: 1366px!important;
				min-width: 900px;
				padding: 0;
				border: 1px solid #e3e9ed;
				border-top: 0
			}
			
			#wiki-preview>.ui.segment {
				margin-top: 0;
				padding: 1rem;
				padding-left: 0;
				border: 0
			}
			
			.hover-places {
				display: inline-block
			}
			
			#page-detail {
				width: 60%;
				margin: 0 auto
			}
			
			#page-detail .title {
				font-weight: 700;
				font-size: 24px;
				padding: 12px 0;
				border-bottom: 1px solid #ccc
			}
			
			#page-detail .content {
				margin-top: 15px
			}
			
			.content p {
				word-wrap: break-word
			}
			
			#wiki-parent,
			#wiki-title,
			#wikis {
				display: none
			}
			
			.ui.grid {
				padding: 0!important
			}
			
			#ex-all {
				cursor: pointer;
				color: #537c8d
			}
		</style>
	</head>

	<body>

		<div class="ui container">
			<div id="project-title">
				<div class="title-wrap">
					<div class="left">
						<i class="icon eye"></i> 文档预览: iflagsMall
					</div>
					<div class="right">
						Export by Gitee
					</div>
				</div>
			</div>

			<div class="ui container" id="wiki-preview-container">
				<div id="wiki-preview">
					<div class="ui segment">
						<div id="page-detail" class="markdown-body">
							<div class='title'>Home</div>
							<div class='content'>
								<p>商城系统后台接口url
									<a href="https://mapi.iflags.cn">https://mapi.iflags.cn</a>
								</p>
								<p>测试语句：
									<a href="http://%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%9C%B0%E5%9D%80/user/%E5%8A%9F%E8%83%BD.do?%E5%85%B3%E9%94%AE%E5%AD%97=%E6%95%B0%E6%8D%AE&amp;%E5%85%B3%E9%94%AE%E5%AD%97=%E6%95%B0%E6%8D%AE">http://服务器地址/user/功能.do?关键字=数据&amp;关键字=数据</a>
								</p>
							</div>
							<div class='title'>门户_用户接口</div>
							<div class='content'>
								<p>[MENU]</p>
								<p>####1.登录</p>
								<p><strong>/user/login.do</strong> post(代码需要post方式请求),开放get，方便调试</p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>username,password
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>fail</p>
								<pre><code>{
    "status": 1,
    "msg": "密码错误"
}
</code></pre>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": {
        "id": 12,
        "username": "aaa",
        "email": "aaa@163.com",
        "phone": null,
        "role": 0,
        "createTime": 1479048325000,
        "updateTime": 1479048325000
    }
}
</code></pre>
								<hr>
								<p>####2.注册
									<strong>/user/register.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>username,password,email,phone,question,answer
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "msg": "校验成功"
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 1,
    "msg": "用户已存在"
}
</code></pre>
								<hr>
								<p>####3.检查用户名是否有效</p>
								<p><strong>/user/check_valid.do</strong></p>
								<p>/check_valid.do?str=admin&amp;type=username就是检查用户名。</p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>str,type
str可以是用户名也可以是email。对应的type是username和email

</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "msg": "校验成功"
}

</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 1,
    "msg": "用户已存在"
}

</code></pre>
								<hr>
								<p>####4.获取登录用户信息
									<strong>/user/get_user_info.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>无参数
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": {
        "id": 12,
        "username": "aaa",
        "email": "aaa@163.com",
        "phone": null,
        "role": 0,
        "createTime": 1479048325000,
        "updateTime": 1479048325000
    }
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 1,
    "msg": "用户未登录,无法获取当前用户信息"
}

</code></pre>
								<hr>
								<p>####5.忘记密码
									<strong>/user/forget_get_question.do</strong></p>
								<p>localhost:8080/user/forget_get_question.do?username=geely</p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>username
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": "这里是问题"
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 1,
    "msg": "该用户未设置找回密码问题"
}
</code></pre>
								<hr>
								<p>####6.提交问题答案
									<strong>/user/forget_check_answer.do</strong></p>
								<p>localhost:8080/user/forget_check_answer.do?username=aaa&amp;question=aa&amp;answer=sss</p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>username,question,answer
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>正确的返回值里面有一个token，修改密码的时候需要用这个。传递给下一个接口</p>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": "531ef4b4-9663-4e6d-9a20-fb56367446a5"
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 1,
    "msg": "问题答案错误"
}
</code></pre>
								<hr>
								<p>####7.忘记密码的重设密码
									<strong>/user/forget_reset_password.do</strong></p>
								<p>localhost:8080/user/forget_reset_password.do?username=aaa&amp;passwordNew=xxx&amp;forgetToken=531ef4b4-9663-4e6d-9a20-fb56367446a5</p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>username,passwordNew,forgetToken
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "msg": "修改密码成功"
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 1,
    "msg": "修改密码操作失效"
}
</code></pre>
								<p>或</p>
								<pre><code>{
    "status": 1,
    "msg": "token已经失效"
}
</code></pre>
								<hr>
								<p>####8.登录中状态重置密码
									<strong>/user/reset_password.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>passwordOld,passwordNew

</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "msg": "修改密码成功"
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 1,
    "msg": "旧密码输入错误"
}
</code></pre>
								<hr>
								<p>####9.登录状态更新账户信息
									<strong>/user/updata_account_info.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>email,phone,question,answer
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "msg": "更新个人信息成功"
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 1,
    "msg": "用户未登录"
}
</code></pre>
								<hr>
								<p>####10.登录状态更新个人信息
									<strong>/user/updata_data_info.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>email,phone,question,answer
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "msg": "更新个人信息成功"
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 1,
    "msg": "用户未登录"
}
</code></pre>
								<hr>
								<p>####11.获取当前登录用户的详细信息，并强制登录
									<strong>/user/get_information.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>无参数
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": {
        "username": "admin",
        "email": "Vincent-Vic@qq.com",
        "phone": "18855559999",
        "role": 1,
        "roledesc": "管理员",
        "introduce": null,
        "tag": "1885555999",
        "address": {
            "detailed": "孙版南路",
            "province": "福建",
            "district": "集美",
            "city": "厦门"
        },
        "education": "大学",
        "sex": null,
        "industry": null
    }
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 10,
    "msg": "用户未登录,无法获取当前用户信息,status=10,强制登录"
}

</code></pre>
								<hr>
								<p>####12.退出登录
									<strong>/user/logout.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>无
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "msg": "退出成功"
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 1,
    "msg": "服务端异常"
}
</code></pre>
								<hr>
								<p>####模板</p>
								<p><strong>/user/.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>k
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>k
</code></pre>
								<p>fail</p>
								<pre><code>k
</code></pre>
								<hr>
							</div>
							<div class='title'>后台_用户接口</div>
							<div class='content'>
								<p>####1.后台管理员登录</p>
								<p><strong>/manage/user/login.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>String username,
String password
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": {
        "id": 12,
        "username": "aaa",
        "email": "aaa@163.com",
        "phone": null,
        "role": 0,
        "createTime": 1479048325000,
        "updateTime": 1479048325000
    }
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 1,
    "msg": "密码错误"
}
</code></pre>
								<hr>
								<p>####2.用户列表</p>
								<p><strong>/manage/user/list.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>pageSize(default=10)
pageNum(default=1)
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": {
        "pageNum": 1,
        "pageSize": 3,
        "size": 3,
        "orderBy": null,
        "startRow": 1,
        "endRow": 3,
        "total": 16,
        "pages": 6,
        "list": [
            {
                "id":17,
                "username":"rosen",
                "password":"",
                "email":"rosen1@happymmall.com",
                "phone":"15011111111",
                "question":"啊哈哈",
                "answer":"服不服",
                "role":0,
                "createTime":1489719093000,
                "updateTime":1513682138000
            },
            {
                "id":17,
                "username":"rosen",
                "password":"",
                "email":"rosen1@happymmall.com",
                "phone":"15011111111",
                "question":"啊哈哈",
                "answer":"服不服",
                "role":0,
                "createTime":1489719093000,
                "updateTime":1513682138000
            }
        ],
        "firstPage": 1,
        "prePage": 0,
        "nextPage": 2,
        "lastPage": 6,
        "isFirstPage": true,
        "isLastPage": false,
        "hasPreviousPage": false,
        "hasNextPage": true,
        "navigatePages": 8,
        "navigatepageNums": [
          1,
          2,
          3,
          4,
          5,
          6
        ]
    }
}
</code></pre>
								<p>fail</p>
								<pre><code>{
  "status": 10,
  "msg": "用户未登录,请登录"
}


或

{
  "status": 1,
  "msg": "没有权限"
}



</code></pre>
								<hr>
								<p>####3.模板</p>
								<p><strong>/REPLACE/.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>k
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>k
</code></pre>
								<p>fail</p>
								<pre><code>k
</code></pre>
								<hr>
							</div>
							<div class='title'>门户_产品接口</div>
							<div class='content'>
								<p>[MENU]</p>
								<p>####1.产品搜索及动态排序List</p>
								<p><strong>/product/list.do</strong></p>
								<p>
									<a href="https://mapi.iflags.cn/product/list.do?keyword=&amp;categoryId=1&amp;orderBy=price_desc">https://mapi.iflags.cn/product/list.do?keyword=&amp;categoryId=1&amp;orderBy=price_desc</a>
								</p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>categoryId
keyword
pageNum(default=1)
pageSize(default=10)
orderBy(default="")：排序参数：例如price_desc，price_asc

</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": {
        "pageNum": 1,
        "pageSize": 10,
        "size": 2,
        "orderBy": null,
        "startRow": 1,
        "endRow": 2,
        "total": 2,
        "pages": 1,
        "list": [
            {
                "id": 1,
                "categoryId": 3,
                "name": "iphone7",
                "subtitle": "双十一促销",
                "mainImage": "mainimage.jpg",
                "status":1,
                "price": 7199.22
            },
            {
                "id": 2,
                "categoryId": 2,
                "name": "oppo R8",
                "subtitle": "oppo促销进行中",
                "mainImage": "mainimage.jpg",
                "status":1,
                "price": 2999.11
            }
        ],
        "firstPage": 1,
        "prePage": 0,
        "nextPage": 0,
        "lastPage": 1,
        "isFirstPage": true,
        "isLastPage": true,
        "hasPreviousPage": false,
        "hasNextPage": false,
        "navigatePages": 8,
        "navigatepageNums": [
            1
        ]
    }
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 1,
    "msg": "参数错误"
}
</code></pre>
								<hr>
								<p>####2.产品detail</p>
								<p><strong>/product/detail.do</strong></p>
								<p>
									<a href="https://mapi.iflags.cn/product/detail.do?productId=2">https://mapi.iflags.cn/product/detail.do?productId=2</a>
								</p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>productId
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
  "status": 0,
  "data": {
    "id": 2,
    "categoryId": 2,
    "name": "oppo R8",
    "subtitle": "oppo促销进行中",
    "mainImage": "mainimage.jpg",
    "subImages": "[\"mmall/aa.jpg\",\"mmall/bb.jpg\",\"mmall/cc.jpg\",\"mmall/dd.jpg\",\"mmall/ee.jpg\"]",
    "detail": "richtext",
    "price": 2999.11,
    "stock": 71,
    "status": 1,
    "createTime": "2016-11-20 14:21:53",
    "updateTime": "2016-11-20 14:21:53"
  }
}

</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 1,
    "msg": "该商品已下架或删除"
}
</code></pre>
								<hr>
								<p>####模板</p>
								<p><strong>/product/.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>k
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>k
</code></pre>
								<p>fail</p>
								<pre><code>k
</code></pre>
								<hr>
							</div>
							<div class='title'>后台_产品接口</div>
							<div class='content'>
								<p>[MENU]</p>
								<hr>
								<p>####1.产品list</p>
								<p>
									<a href="https://mapi.iflags.cn/manage/product/list.do">https://mapi.iflags.cn/manage/product/list.do</a>
								</p>
								<p><strong>/manage/product/list.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>pageNum(default=1)
pageSize(default=10)

</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": {
        "pageNum": 1,
        "pageSize": 10,
        "size": 2,
        "orderBy": null,
        "startRow": 1,
        "endRow": 2,
        "total": 2,
        "pages": 1,
        "list": [
            {
                "id": 1,
                "categoryId": 3,
                "name": "iphone7",
                "subtitle": "双十一促销",
                "mainImage": "mainimage.jpg",
                "status":1,
                "price": 7199.22
            },
            {
                "id": 2,
                "categoryId": 2,
                "name": "oppo R8",
                "subtitle": "oppo促销进行中",
                "mainImage": "mainimage.jpg",
                "status":1,
                "price": 2999.11
            }
        ],
        "firstPage": 1,
        "prePage": 0,
        "nextPage": 0,
        "lastPage": 1,
        "isFirstPage": true,
        "isLastPage": true,
        "hasPreviousPage": false,
        "hasNextPage": false,
        "navigatePages": 8,
        "navigatepageNums": [
            1
        ]
    }
}

</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 10,
    "msg": "用户未登录,请登录"
}

</code></pre>
								<hr>
								<p>####2.产品搜索</p>
								<p>
									<a href="https://mapi.iflags.cn/manage/product/search.do?productName=p">https://mapi.iflags.cn/manage/product/search.do?productName=p</a>
								</p>
								<p>
									<a href="https://mapi.iflags.cn/manage/product/search.do?productId=1">https://mapi.iflags.cn/manage/product/search.do?productId=1</a>
								</p>
								<p><strong>/manage/product/search.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>productName
productId
pageNum(default=1)
pageSize(default=10)


</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": {
        "pageNum": 1,
        "pageSize": 10,
        "size": 1,
        "orderBy": null,
        "startRow": 1,
        "endRow": 1,
        "total": 1,
        "pages": 1,
        "list": [
            {
                "id": 1,
                "categoryId": 3,
                "name": "iphone7",
                "subtitle": "双十一促销",
                "mainImage": "mainimage.jpg",
                "price": 7199.22
            }
        ],
        "firstPage": 1,
        "prePage": 0,
        "nextPage": 0,
        "lastPage": 1,
        "isFirstPage": true,
        "isLastPage": true,
        "hasPreviousPage": false,
        "hasNextPage": false,
        "navigatePages": 8,
        "navigatepageNums": [
            1
        ]
    }
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 10,
    "msg": "用户未登录,请登录"
}

</code></pre>
								<hr>
								<p>####3.图片上传</p>
								<p><strong>/manage/product/upload.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>
&lt;form name="form2" action="/manage/product/upload.do" method="post"  enctype="multipart/form-data"&gt;
    &lt;input type="file" name="upload_file"&gt;
    &lt;input type="submit" value="upload"/&gt;
&lt;/form&gt;

</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": {
        "uri": "e6604558-c0ff-41b9-b6e1-30787a1e3412.jpg",
        "url": "http://img.happymmall.com/e6604558-c0ff-41b9-b6e1-30787a1e3412.jpg"
    }
}

</code></pre>
								<p>fail</p>
								<pre><code>status!=0的时候
</code></pre>
								<hr>
								<p>####4.产品详情</p>
								<p>
									<a href="https://mapi.iflags.cn/manage/product/detail.do?productId=2">https://mapi.iflags.cn/manage/product/detail.do?productId=2</a>
								</p>
								<p><strong>/manage/product/detail.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>productId
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": {
        "id": 2,
        "categoryId": 2,
        "parentCategoryId":1,
        "name": "oppo R8",
        "subtitle": "oppo促销进行中",
        "imageHost": "http://img.happymmall.com/",
        "mainImage": "mainimage.jpg",
        "subImages": "[\"mmall/aa.jpg\",\"mmall/bb.jpg\",\"mmall/cc.jpg\",\"mmall/dd.jpg\",\"mmall/ee.jpg\"]",
        "detail": "richtext",
        "price": 2999.11,
        "stock": 71,
        "status": 1,
        "createTime": "2016-11-20 14:21:53",
        "updateTime": "2016-11-20 14:21:53"
    }
}

</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 1,
    "msg": "没有权限"
}
</code></pre>
								<hr>
								<p>####5.产品上下架</p>
								<p>
									<a href="https://mapi.iflags.cn/manage/product/set_sale_status.do?productId=1&amp;status=1">https://mapi.iflags.cn/manage/product/set_sale_status.do?productId=1&amp;status=1</a>
								</p>
								<p><strong>/manage/product/set_sale_status.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>productId
status
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": "修改产品状态成功"
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 1,
    "data": "修改产品状态失败"
}
</code></pre>
								<hr>
								<p>####6.新增OR更新产品</p>
								<p>新增</p>
								<p>新增
									<a href="https://mapi.iflags.cn/manage/product/save.do?categoryId=1&amp;name=%E4%B8%89%E6%98%9F%E6%B4%97%E8%A1%A3%E6%9C%BA&amp;subtitle=%E4%B8%89%E6%98%9F%E5%A4%A7%E4%BF%83%E9%94%80&amp;subImages=test.jpg,11.jpg,2.jpg,3.jpg&amp;detail=detailtext&amp;price=1000&amp;stock=100&amp;status=1">https://mapi.iflags.cn/manage/product/save.do?categoryId=1&amp;name=三星洗衣机&amp;subtitle=三星大促销&amp;subImages=test.jpg,11.jpg,2.jpg,3.jpg&amp;detail=detailtext&amp;price=1000&amp;stock=100&amp;status=1</a>
								</p>
								<p>更新
									<a href="https://mapi.iflags.cn/manage/product/save.do?categoryId=1&amp;name=%E4%B8%89%E6%98%9F%E6%B4%97%E8%A1%A3%E6%9C%BA&amp;subtitle=%E4%B8%89%E6%98%9F%E5%A4%A7%E4%BF%83%E9%94%80&amp;subImages=test.jpg&amp;detail=detailtext&amp;price=1000&amp;stock=100&amp;status=1&amp;id=3">https://mapi.iflags.cn/manage/product/save.do?categoryId=1&amp;name=三星洗衣机&amp;subtitle=三星大促销&amp;subImages=test.jpg&amp;detail=detailtext&amp;price=1000&amp;stock=100&amp;status=1&amp;id=3</a>
								</p>
								<p><strong>/manage/product/save.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>categoryId=1&amp;name=三星洗衣机&amp;subtitle=三星大促销&amp;mainImage=sss.jpg&amp;subImages=test.jpg&amp;detail=detailtext&amp;price=1000&amp;stock=100&amp;status=1&amp;id=3
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": "更新产品成功"
}

或


{
    "status": 0,
    "data": "新增产品成功"
}

</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 1,
    "data": "更新产品失败"
}
</code></pre>
								<hr>
								<p>####7.富文本上传图片</p>
								<p><strong>/manage/product/richtext_img_upload.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>&lt;form name="form2" action="/manage/product/upload.do" method="post"  enctype="multipart/form-data"&gt;
    &lt;input type="file" name="upload_file"&gt;
    &lt;input type="submit" value="upload"/&gt;
&lt;/form&gt;

</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "file_path": "http://img.happymmall.com/5fb239f2-0007-40c1-b8e6-0dc11b22779c.jpg",
    "msg": "上传成功",
    "success": true
}

</code></pre>
								<p>fail</p>
								<pre><code>{
    "success": false,
    "msg": "error message",
    "file_path": "[real file path]"
}
</code></pre>
								<hr>
							</div>
							<div class='title'>状态码帮助</div>
							<div class='content'>
								<p>//系统状态码</p>
								<pre><code>    SUCCESS(0,"SUCCESS"),//成功状态
    ERROR(1,"ERROR"),//失败状态
    NEED_LOGIN(10,"NEED_LOGIN"),//需要登录
    ILLEGAL_ARGUMENT(2,"ILLEGAL_ARGUMENT"),//非法参数
    NO_AUTHORITY(30,"NO_AUTHORITY"); // 无权限
</code></pre>
								<p>//排序</p>
								<pre><code>    public interface ProductListOrderBy{
        Set&lt;String&gt; PRICE_ASC_DESC = Sets.newHashSet("price_desc","price_asc");
    }
</code></pre>
								<p>//角色：管理员，普通用户</p>
								<pre><code>    public interface Role{
        int ROLE_CUSTOMER = 0;  //普通用户
        int ROLE_ADMIN = 1; //管理员
    }

</code></pre>
								<p>//购物车状态</p>
								<pre><code>    public interface Cart{
        int CHECKED = 1; //选中状态
        int UN_CHECKED = 0; //未选中状态

        String LIMIT_NUM_FAIL ="LIMIT_NUM_FAIL";
        String LIMIT_NUM_SUCCESS ="LIMIT_NUM_SUCCESS";
    }
</code></pre>
								<p>//订单前缀，表示订单作用</p>
								<pre><code>    public  interface SERVER_INDEX{
        String PRODUCT_ORDER = "14";
        String RECHARGE = "12";
    }
</code></pre>
								<p>//订单状态</p>
								<pre><code>    public enum OrderStatusEnum{

        NO_PAY(0,"未支付"),
        CANCELED(10,"已取消"),
        PAID(20,"已付款"),
        SHIPPED(40,"已发货"),
        ORDER_SUCCESS(50,"订单完成"),
        ORDER_CLOSE(60,"订单关闭");
    }
</code></pre>
								<p>//支付宝回调状态</p>
								<pre><code>    public interface  AlipayCallback{
        String TRADE_STATUS_WAIT_BUYER_PAY = "WAIT_BUYER_PAY";
        String TRADE_STATUS_TRADE_SUCCESS = "TRADE_SUCCESS";

        String RESPONSE_SUCCESS = "success";
        String RESPONSE_FAILED = "failed";
    }
</code></pre>
								<p>//发货类型</p>
								<pre><code>    public enum Delivery {
        NOT_Delivery(0,"未发货"),
        LOGISTICS(1,"物流发货"),
        VIRTUAL(3,"虚拟发货");
    }
</code></pre>
								<p>//支付平台</p>
								<pre><code>    public enum PayPlatformEnum{
        ALIPAY(1,"支付宝"),
        WECHATPAY(2,"微信"),
        WELLET(3,"钱包");

    }
</code></pre>
								<p>//支付类型</p>
								<pre><code>    public enum PaymentTypeEnum{
        ONLINE_PAY(1,"在线支付");
    }
</code></pre>
								<p>//商品上下架状态</p>
								<pre><code>    public enum ProductStatusEnum{
        NOT_SALE(0,"下架"),
        ON_SALE(1,"在售");
        private String valus;
        private int code;

   }
</code></pre></div>
							<div class='title'>前端接口</div>
							<div class='content'></div>
							<div class='title'>门户_订单接口</div>
							<div class='content'>
								<p>[MENU]</p>
								<hr>
								<p>####1.1通过购物车创建订单</p>
								<p><strong>/order/create.do</strong></p>
								<p>引用已存在的收货地址id
									<a href="https://mapi.iflags.cn/order/createbycart.do?shippingId=5">https://mapi.iflags.cn/order/createbycart.do?shippingId=5</a>
								</p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>shippingId
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": {
        "orderNo": 1485158223095,
        "payment": 2999.11,
        "paymentType": 1,
        "postage": 0,
        "status": 10,
        "paymentTime": null,
        "sendTime": null,
        "endTime": null,
        "closeTime": null,
        "createTime": 1485158223095,
        "orderItemVoList": [
            {
                "orderNo": 1485158223095,
                "productId": 2,
                "productName": "oppo R8",
                "productImage": "mainimage.jpg",
                "currentUnitPrice": 2999.11,
                "quantity": 1,
                "totalPrice": 2999.11,
                "createTime": null
            }
        ],
        "shippingId": 5,
        "shippingVo": null
    }
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 1,
    "msg": "创建订单失败"
}
</code></pre>
								<hr>
								<p>####1.2通过商品创建订单（立即购买）</p>
								<p><strong>/order/createbyproduct.do</strong></p>
								<p>引用已存在的收货地址id
									<a href="https://mapi.iflags.cn/order/createbyproduct.do?productId=33&amp;quantity=1&amp;shippingId=4">https://mapi.iflags.cn/order/createbyproduct.do?productId=33&amp;quantity=1&amp;shippingId=4</a>
								</p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>productId
quantity
shippingId
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": {
        "orderNo": "14842811840184",
        "payment": 1000.00,
        "paymentType": 1,
        "paymentTypeDesc": "在线支付",
        "postage": 0,
        "express_order": null,
        "express_type": null,
        "delivery_type": null,
        "delivery_type_desc": "未发货",
        "status": 0,
        "statusDesc": "未支付",
        "paymentTime": "",
        "sendTime": "",
        "endTime": "",
        "closeTime": "",
        "createTime": "",
        "itemVoList": [
            {
                "orderNo": "14842811840184",
                "productId": 33,
                "productName": "2020小米10 智能手机5G",
                "productImage": "test.jpg",
                "currentUnitPrice": 1000.00,
                "quantity": 1,
                "totalPrice": 1000.00,
                "createTime": ""
            }
        ],
        "imageHost": "https://img.iflags.cn/",
        "shippingId": 4,
        "receiverName": "geely",
        "shippingVo": {
            "receiverName": "geely",
            "receiverPhone": "010",
            "receiverMobile": "18688888888",
            "receiverProvince": "北京",
            "receiverCity": "北京市",
            "receiverDistrict": "海淀区",
            "receiverAddress": "中关村",
            "receiverZip": "100000"
        }
    }
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 1,
    "msg": "创建订单失败"
}
</code></pre>
								<hr>
								<p>####2.获取订单的商品信息</p>
								<p><strong>/order/get_order_cart_product.do</strong></p>
								<p>
									<a href="https://mapi.iflags.cn/order/get_order_cart_product.do">https://mapi.iflags.cn/order/get_order_cart_product.do</a>
								</p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>无
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": {
        "orderItemVoList": [
            {
                "orderNo": null,
                "productId": 1,
                "productName": "iphone7",
                "productImage": "mmall/aa.jpg",
                "currentUnitPrice": 7999,
                "quantity": 10,
                "totalPrice": 79990,
                "createTime": ""
            }
        ],
        "imageHost": "http://img.happymmall.com/",
        "productTotalPrice": 79990
    }
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 1,
    "msg": "用户未登录"
}
</code></pre>
								<p>####3.订单List</p>
								<p>
									<a href="https://mapi.iflags.cn/order/list.do?pageSize=3">https://mapi.iflags.cn/order/list.do?pageSize=3</a>
								</p>
								<p><strong>/order/list.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>pageSize(default=10)
pageNum(default=1)
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
  "status": 0,
  "data": {
    "pageNum": 1,
    "pageSize": 3,
    "size": 3,
    "orderBy": null,
    "startRow": 1,
    "endRow": 3,
    "total": 16,
    "pages": 6,
    "list": [
      {
        "orderNo": 1485158676346,
        "payment": 2999.11,
        "paymentType": 1,
        "paymentTypeDesc": "在线支付",
        "postage": 0,
        "status": 10,
        "statusDesc": "未支付",
        "paymentTime": "2017-02-11 12:27:18",
        "sendTime": "2017-02-11 12:27:18",
        "endTime": "2017-02-11 12:27:18",
        "closeTime": "2017-02-11 12:27:18",
        "createTime": "2017-01-23 16:04:36",
        "orderItemVoList": [
          {
            "orderNo": 1485158676346,
            "productId": 2,
            "productName": "oppo R8",
            "productImage": "mainimage.jpg",
            "currentUnitPrice": 2999.11,
            "quantity": 1,
            "totalPrice": 2999.11,
            "createTime": "2017-01-23 16:04:36"
          }
        ],
        "imageHost": "http://img.happymmall.com/",
        "shippingId": 5,
        "receiverName": "geely",
        "shippingVo": null
      },
      {
        "orderNo": 1485158675516,
        "payment": 2999.11,
        "paymentType": 1,
        "paymentTypeDesc": "在线支付",
        "postage": 0,
        "status": 10,
        "statusDesc": "未支付",
        "paymentTime": "2017-02-11 12:27:18",
        "sendTime": "2017-02-11 12:27:18",
        "endTime": "2017-02-11 12:27:18",
        "closeTime": "2017-02-11 12:27:18",
        "createTime": "2017-01-23 16:04:35",
        "orderItemVoList": [
          {
            "orderNo": 1485158675516,
            "productId": 2,
            "productName": "oppo R8",
            "productImage": "mainimage.jpg",
            "currentUnitPrice": 2999.11,
            "quantity": 1,
            "totalPrice": 2999.11,
            "createTime": "2017-01-23 16:04:35"
          }
        ],
        "imageHost": "http://img.happymmall.com/",
        "shippingId": 5,
        "receiverName": "geely",
        "shippingVo": null
      },
      {
        "orderNo": 1485158675316,
        "payment": 2999.11,
        "paymentType": 1,
        "paymentTypeDesc": "在线支付",
        "postage": 0,
        "status": 10,
        "statusDesc": "未支付",
        "paymentTime": "2017-02-11 12:27:18",
        "sendTime": "2017-02-11 12:27:18",
        "endTime": "2017-02-11 12:27:18",
        "closeTime": "2017-02-11 12:27:18",
        "createTime": "2017-01-23 16:04:35",
        "orderItemVoList": [
          {
            "orderNo": 1485158675316,
            "productId": 2,
            "productName": "oppo R8",
            "productImage": "mainimage.jpg",
            "currentUnitPrice": 2999.11,
            "quantity": 1,
            "totalPrice": 2999.11,
            "createTime": "2017-01-23 16:04:35"
          }
        ],
        "imageHost": "http://img.happymmall.com/",
        "shippingId": 5,
        "receiverName": "geely",
        "shippingVo": null
      }
    ],
    "firstPage": 1,
    "prePage": 0,
    "nextPage": 2,
    "lastPage": 6,
    "isFirstPage": true,
    "isLastPage": false,
    "hasPreviousPage": false,
    "hasNextPage": true,
    "navigatePages": 8,
    "navigatepageNums": [
      1,
      2,
      3,
      4,
      5,
      6
    ]
  }
}
</code></pre>
								<p>fail</p>
								<pre><code>{
  "status": 10,
  "msg": "用户未登录,请登录"
}


或

{
  "status": 1,
  "msg": "没有权限"
}



</code></pre>
								<hr>
								<p>####4.订单详情detail</p>
								<p>
									<a href="https://mapi.iflags.cn/order/detail.do?orderNo=1480515829406">https://mapi.iflags.cn/order/detail.do?orderNo=1480515829406</a>
								</p>
								<p><strong>/order/detail.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>orderNo
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
  "status": 0,
  "data": {
    "orderNo": 1480515829406,
    "payment": 30000.00,
    "paymentType": 1,
    "paymentTypeDesc": "在线支付",
    "postage": 0,
    "status": 10,
    "statusDesc": "未支付",
    "paymentTime": "",
    "sendTime": "",
    "endTime": "",
    "closeTime": "",
    "createTime": "2016-11-30 22:23:49",
    "orderItemVoList": [
      {
        "orderNo": 1480515829406,
        "productId": 1,
        "productName": "iphone7",
        "productImage": "mainimage.jpg",
        "currentUnitPrice": 10000.00,
        "quantity": 1,
        "totalPrice": 10000.00,
        "createTime": "2016-11-30 22:23:49"
      },
      {
        "orderNo": 1480515829406,
        "productId": 2,
        "productName": "oppo R8",
        "productImage": "mainimage.jpg",
        "currentUnitPrice": 20000.00,
        "quantity": 1,
        "totalPrice": 20000.00,
        "createTime": "2016-11-30 22:23:49"
      }
    ],
    "imageHost": "http://img.happymmall.com/",
    "shippingId": 3,
    "receiverName": "geely",
    "shippingVo": {
      "receiverName": "geely",
      "receiverPhone": "0100",
      "receiverMobile": "186",
      "receiverProvince": "北京",
      "receiverCity": "北京",
      "receiverDistrict": "昌平区",
      "receiverAddress": "矩阵小区",
      "receiverZip": "100000"
    }
  }
}

</code></pre>
								<p>fail</p>
								<pre><code>{
  "status": 1,
  "msg": "没有找到订单"
}
</code></pre>
								<hr>
								<p>####5.取消订单</p>
								<p>
									<a href="https://mapi.iflags.cn/order/cancel.do?orderNo=1480515829406">https://mapi.iflags.cn/order/cancel.do?orderNo=1480515829406</a>
								</p>
								<p><strong>/order/cancel.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>orderNo
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
  "status": 0
}

</code></pre>
								<p>fail</p>
								<pre><code>{
  "status": 1,
  "msg": "该用户没有此订单"
}

或
{
  "status": 1,
  "msg": "此订单已付款，联系工单"
}
</code></pre>
								<hr>
								<p>####5.模板</p>
								<p><strong>/REPLACE/.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>k
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>k
</code></pre>
								<p>fail</p>
								<pre><code>k
</code></pre>
								<hr>
							</div>
							<div class='title'>后台_订单接口</div>
							<div class='content'>
								<p>[MENU]</p>
								<hr>
								<p>####1.订单List</p>
								<p>
									<a href="https://mapi.iflags.cn/manage/order/list.do?pageSize=3">https://mapi.iflags.cn/manage/order/list.do?pageSize=3</a>
								</p>
								<p><strong>/manage/order/list.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>pageSize(default=10)
pageNum(default=1)
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
  "status": 0,
  "data": {
    "pageNum": 1,
    "pageSize": 3,
    "size": 3,
    "orderBy": null,
    "startRow": 1,
    "endRow": 3,
    "total": 16,
    "pages": 6,
    "list": [
      {
        "orderNo": 1485158676346,
        "payment": 2999.11,
        "paymentType": 1,
        "paymentTypeDesc": "在线支付",
        "postage": 0,
        "status": 10,
        "statusDesc": "未支付",
        "paymentTime": "2017-02-11 12:27:18",
        "sendTime": "2017-02-11 12:27:18",
        "endTime": "2017-02-11 12:27:18",
        "closeTime": "2017-02-11 12:27:18",
        "createTime": "2017-01-23 16:04:36",
        "orderItemVoList": [
          {
            "orderNo": 1485158676346,
            "productId": 2,
            "productName": "oppo R8",
            "productImage": "mainimage.jpg",
            "currentUnitPrice": 2999.11,
            "quantity": 1,
            "totalPrice": 2999.11,
            "createTime": "2017-01-23 16:04:36"
          }
        ],
        "imageHost": "http://img.happymmall.com/",
        "shippingId": 5,
        "shippingVo": null
      },
      {
        "orderNo": 1485158675516,
        "payment": 2999.11,
        "paymentType": 1,
        "paymentTypeDesc": "在线支付",
        "postage": 0,
        "status": 10,
        "statusDesc": "未支付",
        "paymentTime": "2017-02-11 12:27:18",
        "sendTime": "2017-02-11 12:27:18",
        "endTime": "2017-02-11 12:27:18",
        "closeTime": "2017-02-11 12:27:18",
        "createTime": "2017-01-23 16:04:35",
        "orderItemVoList": [
          {
            "orderNo": 1485158675516,
            "productId": 2,
            "productName": "oppo R8",
            "productImage": "mainimage.jpg",
            "currentUnitPrice": 2999.11,
            "quantity": 1,
            "totalPrice": 2999.11,
            "createTime": "2017-01-23 16:04:35"
          }
        ],
        "imageHost": "http://img.happymmall.com/",
        "shippingId": 5,
        "receiverName": "geely",
        "shippingVo": null
      },
      {
        "orderNo": 1485158675316,
        "payment": 2999.11,
        "paymentType": 1,
        "paymentTypeDesc": "在线支付",
        "postage": 0,
        "status": 10,
        "statusDesc": "未支付",
        "paymentTime": "2017-02-11 12:27:18",
        "sendTime": "2017-02-11 12:27:18",
        "endTime": "2017-02-11 12:27:18",
        "closeTime": "2017-02-11 12:27:18",
        "createTime": "2017-01-23 16:04:35",
        "orderItemVoList": [
          {
            "orderNo": 1485158675316,
            "productId": 2,
            "productName": "oppo R8",
            "productImage": "mainimage.jpg",
            "currentUnitPrice": 2999.11,
            "quantity": 1,
            "totalPrice": 2999.11,
            "createTime": "2017-01-23 16:04:35"
          }
        ],
        "imageHost": "http://img.happymmall.com/",
        "shippingId": 5,
        "receiverName": "geely",
        "shippingVo": null
      }
    ],
    "firstPage": 1,
    "prePage": 0,
    "nextPage": 2,
    "lastPage": 6,
    "isFirstPage": true,
    "isLastPage": false,
    "hasPreviousPage": false,
    "hasNextPage": true,
    "navigatePages": 8,
    "navigatepageNums": [
      1,
      2,
      3,
      4,
      5,
      6
    ]
  }
}
</code></pre>
								<p>fail</p>
								<pre><code>{
  "status": 10,
  "msg": "用户未登录,请登录"
}


或

{
  "status": 1,
  "msg": "没有权限"
}



</code></pre>
								<hr>
								<p>####2.按订单号查询</p>
								<p>
									<a href="https://mapi.iflags.cn/manage/order/search.do?orderNo=1480515829406">https://mapi.iflags.cn/manage/order/search.do?orderNo=1480515829406</a>
								</p>
								<p><strong>/manage/order/search.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>orderNo
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
  "status": 0,
  "data": {
    "pageNum": 1,
    "pageSize": 3,
    "size": 3,
    "orderBy": null,
    "startRow": 1,
    "endRow": 3,
    "total": 16,
    "pages": 6,
    "list": [
      {
        "orderNo": 1485158676346,
        "payment": 2999.11,
        "paymentType": 1,
        "paymentTypeDesc": "在线支付",
        "postage": 0,
        "status": 10,
        "statusDesc": "未支付",
        "paymentTime": "2017-02-11 12:27:18",
        "sendTime": "2017-02-11 12:27:18",
        "endTime": "2017-02-11 12:27:18",
        "closeTime": "2017-02-11 12:27:18",
        "createTime": "2017-01-23 16:04:36",
        "orderItemVoList": [
          {
            "orderNo": 1485158676346,
            "productId": 2,
            "productName": "oppo R8",
            "productImage": "mainimage.jpg",
            "currentUnitPrice": 2999.11,
            "quantity": 1,
            "totalPrice": 2999.11,
            "createTime": "2017-01-23 16:04:36"
          }
        ],
        "imageHost": "http://img.happymmall.com/",
        "shippingId": 5,
        "shippingVo": null
      },
      {
        "orderNo": 1485158675516,
        "payment": 2999.11,
        "paymentType": 1,
        "paymentTypeDesc": "在线支付",
        "postage": 0,
        "status": 10,
        "statusDesc": "未支付",
        "paymentTime": "2017-02-11 12:27:18",
        "sendTime": "2017-02-11 12:27:18",
        "endTime": "2017-02-11 12:27:18",
        "closeTime": "2017-02-11 12:27:18",
        "createTime": "2017-01-23 16:04:35",
        "orderItemVoList": [
          {
            "orderNo": 1485158675516,
            "productId": 2,
            "productName": "oppo R8",
            "productImage": "mainimage.jpg",
            "currentUnitPrice": 2999.11,
            "quantity": 1,
            "totalPrice": 2999.11,
            "createTime": "2017-01-23 16:04:35"
          }
        ],
        "imageHost": "http://img.happymmall.com/",
        "shippingId": 5,
        "receiverName": "geely",
        "shippingVo": null
      },
      {
        "orderNo": 1485158675316,
        "payment": 2999.11,
        "paymentType": 1,
        "paymentTypeDesc": "在线支付",
        "postage": 0,
        "status": 10,
        "statusDesc": "未支付",
        "paymentTime": "2017-02-11 12:27:18",
        "sendTime": "2017-02-11 12:27:18",
        "endTime": "2017-02-11 12:27:18",
        "closeTime": "2017-02-11 12:27:18",
        "createTime": "2017-01-23 16:04:35",
        "orderItemVoList": [
          {
            "orderNo": 1485158675316,
            "productId": 2,
            "productName": "oppo R8",
            "productImage": "mainimage.jpg",
            "currentUnitPrice": 2999.11,
            "quantity": 1,
            "totalPrice": 2999.11,
            "createTime": "2017-01-23 16:04:35"
          }
        ],
        "imageHost": "http://img.happymmall.com/",
        "shippingId": 5,
        "receiverName": "geely",
        "shippingVo": null
      }
    ],
    "firstPage": 1,
    "prePage": 0,
    "nextPage": 2,
    "lastPage": 6,
    "isFirstPage": true,
    "isLastPage": false,
    "hasPreviousPage": false,
    "hasNextPage": true,
    "navigatePages": 8,
    "navigatepageNums": [
      1,
      2,
      3,
      4,
      5,
      6
    ]
  }
}
</code></pre>
								<p>fail</p>
								<pre><code>{
  "status": 1,
  "msg": "没有找到订单"
}
</code></pre>
								<hr>
								<p>####3.订单详情</p>
								<p>
									<a href="https://mapi.iflags.cn/manage/order/detail.do?orderNo=1480515829406">https://mapi.iflags.cn/manage/order/detail.do?orderNo=1480515829406</a>
								</p>
								<p><strong>/manage/order/detail.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>orderNo
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
  "status": 0,
  "data": {
    "orderNo": 1480515829406,
    "payment": 30000.00,
    "paymentType": 1,
    "paymentTypeDesc": "在线支付",
    "postage": 0,
    "status": 10,
    "statusDesc": "未支付",
    "paymentTime": "",
    "sendTime": "",
    "endTime": "",
    "closeTime": "",
    "createTime": "2016-11-30 22:23:49",
    "orderItemVoList": [
      {
        "orderNo": 1480515829406,
        "productId": 1,
        "productName": "iphone7",
        "productImage": "mainimage.jpg",
        "currentUnitPrice": 10000.00,
        "quantity": 1,
        "totalPrice": 10000.00,
        "createTime": "2016-11-30 22:23:49"
      },
      {
        "orderNo": 1480515829406,
        "productId": 2,
        "productName": "oppo R8",
        "productImage": "mainimage.jpg",
        "currentUnitPrice": 20000.00,
        "quantity": 1,
        "totalPrice": 20000.00,
        "createTime": "2016-11-30 22:23:49"
      }
    ],
    "imageHost": "http://img.happymmall.com/",
    "shippingId": 3,
    "receiverName": "geely",
    "shippingVo": {
      "receiverName": "geely",
      "receiverPhone": "0100",
      "receiverMobile": "186",
      "receiverProvince": "北京",
      "receiverCity": "北京",
      "receiverDistrict": "昌平区",
      "receiverAddress": "矩阵小区",
      "receiverZip": "100000"
    }
  }
}

</code></pre>
								<p>fail</p>
								<pre><code>{
  "status": 1,
  "msg": "没有找到订单"
}
</code></pre>
								<hr>
								<p>####4.订单发货</p>
								<p>
									<a href="https://mapi.iflags.cn/manage/order/send_goods.do?orderNo=1480515829406">https://mapi.iflags.cn/manage/order/send_goods.do?orderNo=1480515829406</a>
								</p>
								<p><strong>/manage/order/send_goods.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>orderNo
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
  "status": 0,
  "data": "发货成功"
}

</code></pre>
								<p>fail</p>
								<pre><code>{
  "status": 1,
  "msg": "发货失败"
}
</code></pre>
								<hr>
							</div>
							<div class='title'>门户_支付接口</div>
							<div class='content'>
								<p>[MENU]</p>
								<hr>
								<p>####1.支付宝支付</p>
								<p><strong>/order/pay.do</strong></p>
								<p>
									<a href="https://mapi.iflags.cn/pay/alipay.do?orderNo=1485158676346">https://mapi.iflags.cn/pay/alipay.do?orderNo=1485158676346</a>
								</p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>orderNo
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": {
        "orderNo": "1485158676346",
        "qrPath": "https://img.iflags.cn/pay_qCode/qr-1492329044075.png"
    }
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 1,
    "msg": "生成订单失败"
}
</code></pre>
								<hr>
								<p>####2.钱包支付</p>
								<p><strong>/order/pay.do</strong></p>
								<p>
									<a href="https://mapi.iflags.cn/pay/walletPay.do?orderNo=1485158676346&amp;password=password">https://mapi.iflags.cn/pay/walletPay.do?orderNo=1485158676346&amp;password=password</a>
								</p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>orderNo
password
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": {
        "orderNo": "1485158676346",
        "qrPath": "https://img.iflags.cn/pay_qCode/qr-1492329044075.png"
    }
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 1,
    "msg": "生成订单失败"
}
</code></pre>
								<hr>
								<p>####3.查询订单支付状态</p>
								<p><strong>/order/query_order_pay_status.do</strong></p>
								<p>
									<a href="http://localhost:8080/order/query_order_pay_status.do?orderNo=1485158676346">http://localhost:8080/order/query_order_pay_status.do?orderNo=1485158676346</a>
								</p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>orderNo
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": true
}


</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 1,
    "msg": "该用户并没有该订单,查询无效"
}
</code></pre>
								<hr>
								<p>####3.支付宝回调</p>
								<p>参考支付宝回调文档：
									<a href="https://support.open.alipay.com/docs/doc.htm?spm=a219a.7629140.0.0.mFogPC&amp;treeId=193&amp;articleId=103296&amp;docType=1">https://support.open.alipay.com/docs/doc.htm?spm=a219a.7629140.0.0.mFogPC&amp;treeId=193&amp;articleId=103296&amp;docType=1</a>
								</p>
								<p><strong>/order/alipay_callback.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>HttpServletRequest
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>success
</code></pre>
								<p>fail</p>
								<pre><code>failed
</code></pre>
								<hr>
								<p>####0.模板</p>
								<p><strong>/REPLACE/.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>k
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>k
</code></pre>
								<p>fail</p>
								<pre><code>k
</code></pre>
								<hr>
							</div>
							<div class='title'>后端接口</div>
							<div class='content'></div>
							<div class='title'>后台_品类接口</div>
							<div class='content'>
								<p>[MENU]</p>
								<hr>
								<p>####1.获取品类子节点(平级)</p>
								<p>
									<a href="https://mapi.iflags.cn/manage/category/get_category.do">https://mapi.iflags.cn/manage/category/get_category.do</a>
									<a href="https://mapi.iflags.cn/manage/category/get_category.do?categoryId=0">https://mapi.iflags.cn/manage/category/get_category.do?categoryId=0</a>
								</p>
								<p>
									<a href="https://mapi.iflags.cn/manage/category/get_category.do?categoryId=2">https://mapi.iflags.cn/manage/category/get_category.do?categoryId=2</a>
								</p>
								<p><strong>/manage/category/get_category.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>categoryId(default=0)

</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>
{
    "status": 0,
    "data": [
        {
            "id": 2,
            "parentId": 1,
            "name": "手机",
            "status": true,
            "sortOrder": 3,
            "createTime": 1479622913000,
            "updateTime": 1479622913000
        },
        {
            "id": 4,
            "parentId": 1,
            "name": "移动座机",
            "status": true,
            "sortOrder": 5,
            "createTime": 1480059936000,
            "updateTime": 1480491941000
        }
    ]
}

</code></pre>
								<p>
									<a href="https://mapi.iflags.cn/manage/category/get_category.do?categoryId=19">https://mapi.iflags.cn/manage/category/get_category.do?categoryId=19</a>
								</p>
								<p>fail</p>
								<pre><code>{
    "status": 10,
    "msg": "用户未登录,请登录"
}
或

{
    "status": 1,
    "msg": "未找到该品类"
}
</code></pre>
								<hr>
								<p>####2.增加节点</p>
								<p><strong>/manage/category/add_category.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>parentId(default=0)
categoryName
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "msg": "添加品类成功"
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status":1,
    "msg": "添加品类失败"
}
</code></pre>
								<hr>
								<p>####3.修改品类名字</p>
								<p>
									<a href="https://mapi.iflags.cn/manage/category/updata_category_name.do?categoryId=999&amp;categoryName=%E5%98%BB%E5%98%BB">https://mapi.iflags.cn/manage/category/updata_category_name.do?categoryId=999&amp;categoryName=%E5%98%BB%E5%98%BB</a>
									<a href="https://mapi.iflags.cn/manage/category/updata_category_name.do?categoryId=1&amp;categoryName=%E5%98%BB%E5%98%BB">https://mapi.iflags.cn/manage/category/updata_category_name.do?categoryId=1&amp;categoryName=%E5%98%BB%E5%98%BB</a>
								</p>
								<p><strong>/manage/category/set_category_name.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>categoryId
categoryName
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "msg": "更新品类名字成功"
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 1,
    "msg": "更新品类名字失败"
}
</code></pre>
								<hr>
								<p>####4.获取当前分类id及递归子节点categoryId</p>
								<p>
									<a href="https://mapi.iflags.cn/manage/category/get_deep_category.do?categoryId=100001">https://mapi.iflags.cn/manage/category/get_deep_category.do?categoryId=100001</a>
								</p>
								<p><strong>/manage/category/get_deep_category.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>categoryId
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": [
        100009,
        100010,
        100001,
        100006,
        100007,
        100008
    ]
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 1,
    "msg": "无权限"
}
</code></pre>
								<hr>
							</div>
							<div class='title'>门户_钱包接口</div>
							<div class='content'>
								<p>[MENU]</p>
								<p>####1.信息查询</p>
								<p><strong>/wallet/get_information.do</strong> post(代码需要post方式请求),开放get，方便调试</p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>null
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>fail</p>
								<pre><code>{
    "status": 10,
    "msg": "未登录，需要登录"
}
</code></pre>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": {
        "id": 1,
        "userId": 1,
        "balance": 11000,
        "coin": 10020,
        "payPassword": "",
        "lastLogin": 1582862997000,
        "createTime": 1582810243000,
        "updateTime": 1582862997000
    }
}
</code></pre>
								<hr>
								<p>####2.充值
									<strong>/wallet/recharge.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>price
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": {
        "orderNo": "12812811810181",
        "qrUrl": "https://img.iflags.cn/pay_qCode/qr-12812811810181.png"
    }
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 10,
    "msg": "未登录，需要登录"
}
</code></pre>
								<hr>
								<p>####3.忘记支付密码</p>
								<p><strong>/wallet/forget_pay_pasword.do</strong> **需要通过密保修改，并且是已经的状态登录
								</p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>passwordNew
forgetToken

</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "msg": "修改成功"
}

</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 1,
    "msg": "修改失败/token已经失效/非法参数"
}

</code></pre>
								<hr>
								<p>####4.通过密码修改支付密码
									<strong>/wallet/restPasword.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>passwordOld
passwordNew
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "msg": "修改成功"
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 1,
    "msg": "旧密码错误/修改失败"
}

</code></pre>
								<hr>
								<p>####模板</p>
								<p><strong>/user/.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>k
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>k
</code></pre>
								<p>fail</p>
								<pre><code>k
</code></pre>
								<hr>
							</div>
							<div class='title'>后台_统计接口</div>
							<div class='content'>
								<hr>
								<p>####1.统计用户、商品、订单数量</p>
								<p><strong>/manage/statistic/base_count.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>无

</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>
{
    "status": 0,
    "data": {
        "ProductConut": 2,
        "OrderConut": 24,
        "UserConut": 8,
        "ProductOnSaleConut": 2,
        "OrderCompleteConut": 2,
        "OrderPaidConut": 10
    }
}

</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 10,
    "msg": "用户未登录,请登录"
}
或

{
    "status": 1,
    "msg": "出错啦"
}
</code></pre></div>
							<div class='title'>门户_购物车接口</div>
							<div class='content'>
								<p>[MENU]</p>
								<p>####1.购物车List列表</p>
								<p><strong>/cart/list.do</strong></p>
								<p>
									<a href="https://mapi.iflags.cn/cart/list.do">https://mapi.iflags.cn/cart/list.do</a>
								</p>
								<p>注意点：</p>
								<ol>
									<li>需要先登录,所有的密码都是123</li>
									<li>NEED_LOGIN(10, "NEED_LOGIN"),//需要登录的错误编码</li>
									<li>价格的单位是元,保留小数后2位</li>
								</ol>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>无参数,需要登录状态
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>
{
    "status": 0,
    "data": {
        "cartProductVoList": [
            {
                "id": 1,
                "userId": 13,
                "productId": 1,
                "quantity": 1,
                "productName": "iphone7",
                "productSubtitle": "双十一促销",
                "productMainImage": "mainimage.jpg",
                "productPrice": 7199.22,
                "productStatus": 1,
                "productTotalPrice": 7199.22,
                "productStock": 86,
                "productChecked": 1,
                "limitQuantity": "LIMIT_NUM_SUCCESS"
            },
            {
                "id": 2,
                "userId": 13,
                "productId": 2,
                "quantity": 1,
                "productName": "oppo R8",
                "productSubtitle": "oppo促销进行中",
                "productMainImage": "mainimage.jpg",
                "productPrice": 2999.11,
                "productStatus": 1,
                "productTotalPrice": 2999.11,
                "productStock": 86,
                "productChecked": 1,
                "limitQuantity": "LIMIT_NUM_SUCCESS"
            }
        ],
        "allChecked": true,
        "cartTotalPrice": 10198.33
    }
}

</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 10,
    "msg": "用户未登录,请登录"
}
</code></pre>
								<hr>
								<p>####2.购物车添加商品</p>
								<p><strong>/cart/add.do</strong></p>
								<p>
									<a href="https://mapi.iflags.cn/cart/add.do?productId=1&amp;count=10">https://mapi.iflags.cn/cart/add.do?productId=1&amp;count=10</a>
								</p>
								<p>请注意这个字段，超过数量会返回这样的标识"limitQuantity"</p>
								<p>失败的：LIMIT_NUM_FAIL 成功的：LIMIT_NUM_SUCCESS
								</p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>productId,count
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": {
        "cartProductVoList": [
            {
                "id": 1,
                "userId": 13,
                "productId": 1,
                "quantity": 12,
                "productName": "iphone7",
                "productSubtitle": "双十一促销",
                "productMainImage": "mainimage.jpg",
                "productPrice": 7199.22,
                "productStatus": 1,
                "productTotalPrice": 86390.64,
                "productStock": 86,
                "productChecked": 1,
                "limitQuantity": "LIMIT_NUM_SUCCESS"
            },
            {
                "id": 2,
                "userId": 13,
                "productId": 2,
                "quantity": 1,
                "productName": "oppo R8",
                "productSubtitle": "oppo促销进行中",
                "productMainImage": "mainimage.jpg",
                "productPrice": 2999.11,
                "productStatus": 1,
                "productTotalPrice": 2999.11,
                "productStock": 86,
                "productChecked": 1,
                "limitQuantity": "LIMIT_NUM_SUCCESS"
            }
        ],
        "allChecked": true,
        "cartTotalPrice": 89389.75
    }
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 10,
    "msg": "用户未登录,请登录"
}
</code></pre>
								<hr>
								<p>####3.更新购物车某个产品数量</p>
								<p><strong>/cart/update.do</strong></p>
								<p>
									<a href="https://mapi.iflags.cn/cart/update.do?productId=1&amp;count=2">https://mapi.iflags.cn/cart/update.do?productId=1&amp;count=2</a>
								</p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>productId,count
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>响应同2</p>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": {
        "cartProductVoList": [
            {
                "id": 1,
                "userId": 13,
                "productId": 1,
                "quantity": 12,
                "productName": "iphone7",
                "productSubtitle": "双十一促销",
                "productMainImage": "mainimage.jpg",
                "productPrice": 7199.22,
                "productStatus": 1,
                "productTotalPrice": 86390.64,
                "productStock": 86,
                "productChecked": 1,
                "limitQuantity": "LIMIT_NUM_SUCCESS"
            },
            {
                "id": 2,
                "userId": 13,
                "productId": 2,
                "quantity": 1,
                "productName": "oppo R8",
                "productSubtitle": "oppo促销进行中",
                "productMainImage": "mainimage.jpg",
                "productPrice": 2999.11,
                "productStatus": 1,
                "productTotalPrice": 2999.11,
                "productStock": 86,
                "productChecked": 1,
                "limitQuantity": "LIMIT_NUM_SUCCESS"
            }
        ],
        "allChecked": true,
        "cartTotalPrice": 89389.75
    }
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 10,
    "msg": "用户未登录,请登录"
}
</code></pre>
								<hr>
								<p>####4.移除购物车某个产品</p>
								<p><strong>/cart/delete_product.do</strong></p>
								<p>
									<a href="https://mapi.iflags.cn/cart/delete_product.do?productIds=1,3">https://mapi.iflags.cn/cart/delete_product.do?productIds=1,3</a>
								</p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>productIds
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": {
        "cartProductVoList": [
            {
                "id": 2,
                "userId": 13,
                "productId": 2,
                "quantity": 1,
                "productName": "oppo R8",
                "productSubtitle": "oppo促销进行中",
                "productMainImage": "mainimage.jpg",
                "productPrice": 2999.11,
                "productStatus": 1,
                "productTotalPrice": 2999.11,
                "productStock": 86,
                "productChecked": 1,
                "limitQuantity": "LIMIT_NUM_SUCCESS"
            }
        ],
        "allChecked": true,
        "cartTotalPrice": 2999.11
    }
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 10,
    "msg": "用户未登录,请登录"
}
</code></pre>
								<hr>
								<p>####5.购物车选中某个商品</p>
								<p><strong>/cart/select.do</strong></p>
								<p>
									<a href="https://mapi.iflags.cn/cart/select.do?productId=1">https://mapi.iflags.cn/cart/select.do?productId=1</a>
								</p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>productId
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": {
        "cartProductVoList": [
            {
                "id": 2,
                "userId": 13,
                "productId": 2,
                "quantity": 1,
                "productName": "oppo R8",
                "productSubtitle": "oppo促销进行中",
                "productMainImage": "mainimage.jpg",
                "productPrice": 2999.11,
                "productStatus": 1,
                "productTotalPrice": 2999.11,
                "productStock": 86,
                "productChecked": 1,
                "limitQuantity": "LIMIT_NUM_SUCCESS"
            }
        ],
        "allChecked": true,
        "cartTotalPrice": 2999.11
    }
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 10,
    "msg": "用户未登录,请登录"
}
</code></pre>
								<hr>
								<p>####6.购物车取消选中某个商品</p>
								<p><strong>/cart/un_select.do</strong></p>
								<p>
									<a href="https://mapi.iflags.cn/cart/un_select.do?productId=2">https://mapi.iflags.cn/cart/un_select.do?productId=2</a>
								</p>
								<blockquote>
									<p>注意返回值中的cartTotalPrice，如果反选之后总价的变化</p>
								</blockquote>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>productId
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": {
        "cartProductVoList": [
            {
                "id": 2,
                "userId": 13,
                "productId": 2,
                "quantity": 1,
                "productName": "oppo R8",
                "productSubtitle": "oppo促销进行中",
                "productMainImage": "mainimage.jpg",
                "productPrice": 2999.11,
                "productStatus": 1,
                "productTotalPrice": 2999.11,
                "productStock": 86,
                "productChecked": 0,
                "limitQuantity": "LIMIT_NUM_SUCCESS"
            }
        ],
        "allChecked": true,
        "cartTotalPrice": 0
    }
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 10,
    "msg": "用户未登录,请登录"
}
</code></pre>
								<hr>
								<p>####7.查询在购物车里的产品数量</p>
								<p><strong>/cart/get_cart_product_count.do</strong></p>
								<p>
									<a href="https://mapi.iflags.cn/cart/get_cart_product_count.do">https://mapi.iflags.cn/cart/get_cart_product_count.do</a>
								</p>
								<blockquote>
									<p>未登录返回0</p>
								</blockquote>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>无
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": 0
    
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 10,
    "msg": "出现异常"
}
</code></pre>
								<hr>
								<p>####8.购物车全选</p>
								<p><strong>/cart/select_all.do</strong></p>
								<p>
									<a href="https://mapi.iflags.cn/cart/select_all.do">https://mapi.iflags.cn/cart/select_all.do</a>
								</p>
								<blockquote>
									<p>注意返回值中的cartTotalPrice的变化</p>
								</blockquote>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>无
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": {
        "cartProductVoList": [
            {
                "id": 2,
                "userId": 13,
                "productId": 2,
                "quantity": 1,
                "productName": "oppo R8",
                "productSubtitle": "oppo促销进行中",
                "productMainImage": "mainimage.jpg",
                "productPrice": 2999.11,
                "productStatus": 1,
                "productTotalPrice": 2999.11,
                "productStock": 86,
                "productChecked": 0,
                "limitQuantity": "LIMIT_NUM_SUCCESS"
            }
        ],
        "allChecked": true,
        "cartTotalPrice": 2999.11
    }
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 10,
    "msg": "用户未登录,请登录"
}
</code></pre>
								<hr>
								<p>####9.购物车取消全选</p>
								<p><strong>/cart/un_select_all.do</strong></p>
								<p>
									<a href="https://mapi.iflags.cn/cart/un_select_all.do">https://mapi.iflags.cn/cart/un_select_all.do</a>
								</p>
								<blockquote>
									<p>注意返回值中的cartTotalPrice总价的变化</p>
								</blockquote>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>无
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": {
        "cartProductVoList": [
            {
                "id": 2,
                "userId": 13,
                "productId": 2,
                "quantity": 1,
                "productName": "oppo R8",
                "productSubtitle": "oppo促销进行中",
                "productMainImage": "mainimage.jpg",
                "productPrice": 2999.11,
                "productStatus": 1,
                "productTotalPrice": 2999.11,
                "productStock": 86,
                "productChecked": 0,
                "limitQuantity": "LIMIT_NUM_SUCCESS"
            }
        ],
        "allChecked": true,
        "cartTotalPrice": 0
    }
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 10,
    "msg": "用户未登录,请登录"
}
</code></pre>
								<hr>
							</div>
							<div class='title'>门户_收货地址接口</div>
							<div class='content'>
								<p>[MENU]</p>
								<p>####1.添加地址</p>
								<p><strong>/shipping/add.do</strong></p>
								<p>
									<a href="https://mapi.iflags.cn/shipping/add.do?userId=1&amp;receiverName=geely&amp;receiverPhone=010&amp;receiverMobile=18688888888&amp;receiverProvince=%E5%8C%97%E4%BA%AC&amp;receiverCity=%E5%8C%97%E4%BA%AC%E5%B8%82&amp;receiverAddress=%E4%B8%AD%E5%85%B3%E6%9D%91&amp;receiverZip=100000">https://mapi.iflags.cn/shipping/add.do?userId=1&amp;receiverName=geely&amp;receiverPhone=010&amp;receiverMobile=18688888888&amp;receiverProvince=%E5%8C%97%E4%BA%AC&amp;receiverCity=%E5%8C%97%E4%BA%AC%E5%B8%82&amp;receiverAddress=%E4%B8%AD%E5%85%B3%E6%9D%91&amp;receiverZip=100000</a>
								</p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>userId=1
receiverName=geely
receiverPhone=010
receiverMobile=18688888888
receiverProvince=北京
receiverCity=北京市
receiverAddress=中关村
receiverZip=100000

</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "msg": "新建地址成功",
    "data": {
        "shippingId": 28
    }
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 1,
    "msg": "新建地址失败"
}
</code></pre>
								<hr>
								<p>####2.删除地址</p>
								<p><strong>/shipping/del.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>shippingId
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "msg": "删除地址成功"
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 1,
    "msg": "删除地址失败"
}
</code></pre>
								<hr>
								<p>####3.登录状态更新地址</p>
								<p><strong>/shipping/update.do</strong></p>
								<p>
									<a href="https://mapi.iflags.cn/shipping/update.do?id=5&amp;receiverName=AAA&amp;receiverPhone=010&amp;receiverMobile=18688888888&amp;receiverProvince=%E5%8C%97%E4%BA%AC&amp;receiverCity=%E5%8C%97%E4%BA%AC%E5%B8%82&amp;receiverDistrict=%E6%B5%B7%E6%B7%80%E5%8C%BA&amp;receiverAddress=%E4%B8%AD%E5%85%B3%E6%9D%91&amp;receiverZip=100000">https://mapi.iflags.cn/shipping/update.do?id=5&amp;receiverName=AAA&amp;receiverPhone=010&amp;receiverMobile=18688888888&amp;receiverProvince=%E5%8C%97%E4%BA%AC&amp;receiverCity=%E5%8C%97%E4%BA%AC%E5%B8%82&amp;receiverDistrict=%E6%B5%B7%E6%B7%80%E5%8C%BA&amp;receiverAddress=%E4%B8%AD%E5%85%B3%E6%9D%91&amp;receiverZip=100000</a>
								</p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>id=1
receiverName=geely
receiverPhone=010
receiverMobile=18688888888
receiverProvince=北京
receiverCity=北京市
receiverAddress=中关村
receiverZip=100000
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "msg": "更新地址成功"
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 1,
    "msg": "更新地址失败"
}
</code></pre>
								<hr>
								<p>####4.选中查看具体的地址</p>
								<p><strong>/shipping/select.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>shippingId
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": {
        "id": 4,
        "userId": 13,
        "receiverName": "geely",
        "receiverPhone": "010",
        "receiverMobile": "18688888888",
        "receiverProvince": "北京",
        "receiverCity": "北京市",
        "receiverAddress": "中关村",
        "receiverZip": "100000",
        "createTime": 1485066385000,
        "updateTime": 1485066385000
    }
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 1,
    "msg": "请登录之后查询"
}
</code></pre>
								<hr>
								<p>####5.地址列表</p>
								<p><strong>/shipping/list.do</strong></p>
								<p>
									<a href="https://mapi.iflags.cn/shipping/list.do">https://mapi.iflags.cn/shipping/list.do</a>
								</p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>pageNum(默认1),pageSize(默认10)
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>{
    "status": 0,
    "data": {
        "pageNum": 1,
        "pageSize": 10,
        "size": 2,
        "orderBy": null,
        "startRow": 1,
        "endRow": 2,
        "total": 2,
        "pages": 1,
        "list": [
            {
                "id": 4,
                "userId": 13,
                "receiverName": "geely",
                "receiverPhone": "010",
                "receiverMobile": "18688888888",
                "receiverProvince": "北京",
                "receiverCity": "北京市",
                "receiverAddress": "中关村",
                "receiverZip": "100000",
                "createTime": 1485066385000,
                "updateTime": 1485066385000
            },
            {
                "id": 5,
                "userId": 13,
                "receiverName": "AAA",
                "receiverPhone": "010",
                "receiverMobile": "18688888888",
                "receiverProvince": "北京",
                "receiverCity": "北京市",
                "receiverAddress": "中关村",
                "receiverZip": "100000",
                "createTime": 1485066392000,
                "updateTime": 1485075875000
            }
        ],
        "firstPage": 1,
        "prePage": 0,
        "nextPage": 0,
        "lastPage": 1,
        "isFirstPage": true,
        "isLastPage": true,
        "hasPreviousPage": false,
        "hasNextPage": false,
        "navigatePages": 8,
        "navigatepageNums": [
            1
        ]
    }
}
</code></pre>
								<p>fail</p>
								<pre><code>{
    "status": 1,
    "msg": "请登录之后查询"
}
</code></pre>
								<hr>
								<p>####模板</p>
								<p><strong>/product/.do</strong></p>
								<blockquote>
									<p>request</p>
								</blockquote>
								<pre><code>k
</code></pre>
								<blockquote>
									<p>response</p>
								</blockquote>
								<p>success</p>
								<pre><code>k
</code></pre>
								<p>fail</p>
								<pre><code>k
</code></pre>
								<hr>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="botCenter">
			Copyright © 2020
			<a href="http://beian.miit.gov.cn" target="_blank">闽ICP备20002342号</a> 码农flag
		</div>
	</body>

</html>